package com.dk.service.impl;

import com.dk.mapper.CarOrderMapper;
import com.dk.pojo.CarOrder;
import com.dk.service.CarOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarOrderServiceImpl implements CarOrderService {

    @Autowired
    private CarOrderMapper carOrderMapper;

    @Override
    public boolean toInsert(CarOrder order) {
        return carOrderMapper.insert(order) > 0;
    }
}
